package com.ruoyi.parkmangement.service.impl;

import com.ruoyi.parkmangement.domain.vo.ParkingStatVO;
import com.ruoyi.parkmangement.mapper.CarMapper;
import com.ruoyi.parkmangement.service.IReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReportServiceImpl implements IReportService {

    @Autowired
    private CarMapper carMapper;

    @Override
    public List<ParkingStatVO> getParkingStats() {
        return carMapper.selectParkingStats();
    }
}